FROM webdevops/php-nginx:8.1-alpine

# 设置站点运行目录
ENV WEB_DOCUMENT_ROOT /app/public

# 设置伪静态规则
ENV NGINX_REWRITE_RULES "location / { try_files \$uri \$uri/ /index.php?\$query_string; }"

ADD ./beikeshop.tar /app

RUN chmod -R 777 /app

EXPOSE 80

CMD ["supervisord"]